From: Christian Kellner Date: Mon, 4 Feb 2019 15:14:16 +0000 (+0100) Subject: thunderbolt: ensure failure msg is translatable X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~897^2^2~46 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=345a8fe748d14b042887f17b022bd2e685e9e218;p=gnome-shell.git thunderbolt: ensure failure msg is translatable Swap the gettext() and format() calls to ensure that the message is translatable. --- diff --git a/js/ui/status/thunderbolt.js b/js/ui/status/thunderbolt.js index 8362b5d73..b7dadbc66 100644 --- a/js/ui/status/thunderbolt.js +++ b/js/ui/status/thunderbolt.js @@ -334,7 +334,7 @@ var Indicator = class extends PanelMenu.SystemIndicator { _onEnrollFailed(obj, device, error) { const title = _("Thunderbolt authorization error"); - const body = _("Could not authorize the Thunderbolt device: %s".format(error.message)); + const body = _("Could not authorize the Thunderbolt device: %s").format(error.message); this._notify(title, body); } };